<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <style type="text/css">
    table {
      border-collapse: collapse;
      font-size: 14px;
      width: 80%;
      margin: auto
    }

    table, th, td {
      border: 1px solid #47ffff;
      padding: 10px
    }
  </style>
</head>
<body>
<div style="text-align: center">
  <table class="dlist">
    <a th:href="@{/staff/findAll}">返回</a>
    <br>
    <a th:href="@{/dep/toUser}">添加</a>
    <tr>
      <th>id</th>
      <th>部门名称</th>
      <th>部门创建时间</th>
      <th>操作</th>
    </tr>
    <tr th:each="xue : ${dlist}">
      <td th:text="${xue.did}"></td>
      <td th:text="${xue.dname}"></td>
      <td th:text="${#dates.format(xue.creationTime,'yyyy-MM-dd')}"></td>
      <td>
        <a href=" ">修改</a>
        <a th:href="@{/dep/del(id=${xue.did})}">删除</a>
        <a th:href="@{/poste/al(depId=${xue.did})}">进入职务表</a>
      </td>
    </tr>
  </table>
</div>
</body>
</html>
